package com.xinsilu.hospital.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("Listofnoninpatientdrugs")
@ApiModel(value="Listofnoninpatientdrugs对象", description="")
public class Listofnoninpatientdrugs implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "病人id")
    @TableField("patient_id")
    private Integer patientId;

    @ApiModelProperty(value = "药id")
    @TableField("drug_id")
    private Integer drugId;



    @ApiModelProperty(value = "时间")
    private String date;

    @ApiModelProperty(value = "合计")
    private String total;

    @ApiModelProperty(value = "数量")
    private String shuliang;

    @ApiModelProperty(value = "已收金额")
    private String yishou;


    @TableField(exist = false)
    DrugTable drugTable;
    @TableField(exist = false)
    private String name;
    @TableField(exist = false)
    private double cost;
}
